package com.irdstudio.efp.flow.common.vo;

import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

public class PagePluginVO {

	/**
	 * 插件ID
	 */
	private String bizPluginId;
	
	/**
	 * 插件名称
	 */
	private String bizPluginName;
	
	/**
	 * 插件uri
	 */
	private String bizPageUrl;
	
	/**
	 * 插件数据对象
	 */
	private Map<String, Object> datas;
	
	/**
	 * 插件类型
	 */
	private String bizPluginType;
	
	/**
	 * 任务状态
	 */
	private String taskState;
	
	/**
	 * 任务名称
	 */
	private String taskName;
	
	private String dataKey;
	
	private String taskId;

	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	public String getDataKey() {
		return dataKey;
	}

	public void setDataKey(String dataKey) {
		this.dataKey = dataKey;
	}

	public Map<String, Object> getDatas() {
		return datas;
	}

	public void setDatas(Map<String, Object> datas) {
		this.datas = datas;
	}
	
	public void addData(String key, Object value) {
		if (Objects.isNull(this.datas)) {
			this.datas = new HashMap<String, Object>();
		}
		this.datas.put(key, value);
	}

	public String getTaskName() {
		return taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	public String getBizPluginId() {
		return bizPluginId;
	}

	public void setBizPluginId(String bizPluginId) {
		this.bizPluginId = bizPluginId;
	}

	public String getBizPluginName() {
		return bizPluginName;
	}

	public void setBizPluginName(String bizPluginName) {
		this.bizPluginName = bizPluginName;
	}

	public String getBizPageUrl() {
		return bizPageUrl;
	}

	public void setBizPageUrl(String bizPageUrl) {
		this.bizPageUrl = bizPageUrl;
	}

	public String getBizPluginType() {
		return bizPluginType;
	}

	public void setBizPluginType(String bizPluginType) {
		this.bizPluginType = bizPluginType;
	}

	public String getTaskState() {
		return taskState;
	}

	public void setTaskState(String taskState) {
		this.taskState = taskState;
	}
	
	
}
